package com.shengwei.truck.driver.bean;
import androidx.databinding.ObservableField;

/**
 * 车俩信息的DataBinding双向绑定类
 * 当输入UI,则UI内容自动映射到程序变量
 * 当修改程序变量，则UI内容自动填充成变量的值
 */
public class CarTwoWayBinding {
    ObservableField<JsonCar> observableField  = new ObservableField();
    public CarTwoWayBinding(JsonCar car) {
        observableField.set(car);
    }
    public void setCar(JsonCar car) {
        observableField.set(car);
    }
    public String getAxleNum() {
        return observableField.get().axleNum;
    }
    public void setAxleNum(String axleNum) {
        observableField.get().axleNum = axleNum;
    }
    public String getBrand() {
        return observableField.get().brand;
    }
    public void setBrand(String brand) {
        this.observableField.get().brand = brand;
    }
    public String getCapacity() {
        return observableField.get().capacity;
    }
    public String getTypeId() {
        return observableField.get().typeId;
    }
    public void setTypeId(String typeId) {
        this.observableField.get().typeId = typeId;
    }
    public void setCapacity(String capacity) {
        this.observableField.get().capacity = capacity;
    }
    public String getMaker() {
        return observableField.get().maker;
    }
    public void setMaker(String maker) {
        this.observableField.get().maker = maker;
    }
    public String getMepFlag() {
        return observableField.get().mepFlag;
    }
    public void setMepFlag(String mepFlag) {
        this.observableField.get().mepFlag = mepFlag;
    }
    public String getTypeCode() {
        return observableField.get().typeCode;
    }
    public void setTypeCode(String typeCode) {
        this.observableField.get().typeCode = typeCode;
    }

    public String getName() {
        return observableField.get().name;
    }
    public void setName(String name) {
        this.observableField.get().name = name;
    }
    public String getPlateNumber() {
        return this.observableField.get().plateNumber;
    }

    public void setPlateNumber(String plateNumber) {
        this.observableField.get().plateNumber = plateNumber;
    }

    public String getServiceLife() {
        return this.observableField.get().serviceLife;
    }

    public void setServiceLife(String serviceLife) {
        this.observableField.get().serviceLife = serviceLife;
    }
    public String getEtcNum() {
        return observableField.get().etcNum;
    }
    public void setEtcNum(String etcNum) {
        this.observableField.get().etcNum = etcNum;
    }


    public String getUnit() {
        return observableField.get().unit;
    }

    public void setUnit(String unit) {
        this.observableField.get().unit = unit;
    }

    public String getInspect() {
        return  observableField.get().inspect;
    }

    public void setInspect(String inspect) {
        this.observableField.get().inspect = inspect;
    }


}
